<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>负利润订单列表</title>

<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent tables">
  <div class="pageheader notab">
    <h1 class="pagetitle">负利润订单列表</h1>
    
    <span class="pagedesc">1、如果是工厂定制商品出现负利润，有可能是配件 <br>&nbsp;&nbsp;&nbsp;&nbsp; 2、当前只统计正常订单、手工创建、合并订单并且是已支付、配货中状态<br>
 &nbsp;&nbsp;&nbsp;&nbsp; 3、只显示最近三个月的订单<br>
  </span>
  
    
  </div>
  <!--pageheader-->
  
  
  <div id="contentwrapper" class="contentwrapper"> 
    <!--搜索栏-->
    <form class="stdform stdform2" method="get" id="search" action="/datareport/ordernegative">
      <div class="tableoptions"> 
        供货商:
       <select name="factory" id="factory" size="1" class="full_input">
               <option value="">请选择</option>
              {{foreach from = $factorylist key=key item=li}}
                <option value="{{$li.id}}" {{if $made_factory == $li.id}} selected{{/if}}>{{$li.name}}</option>
              {{/foreach}}
              </select>
       
        
     
        
      关键词: 
        <input type="text" name="sku" id="sku" class="width100" value="{{$sku}}" placeholder="SKU" />
        
         维护人员: 
        <input type="text" name="ch" id="ch" class="width100" value="{{$ch}}" placeholder="维护人员姓名" />
       
           <!--  <select name="protector" id="protector" class="selection select2_group" style="width:100px;" >
            <option value="0">请选择</option>
            {{foreach from=$userlist item=res key=key}}
            <option value="{{$res}}" {{if $developer eq $res}} selected{{/if}}>{{$res}}</option>
            {{/foreach}}
        </select>      -->
        &nbsp;
        <button class="btn btn_orange btn_search radius50">Search</button>
       
      <br><br>
        
      </div>
    </form>
    <!--搜索栏结束-->
    
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
      <colgroup>
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      </colgroup>
      <thead>
        <tr>
          <th class="head0">商品编号</th>
          <th class="head1">负利润 </th>
          <th class="head0">订单编号</th>
          <th class="head0">订单时间</th>
          <th class="head1">收入金额</th>
         
          
          <th class="head0">收入f运费</th>
          <th class="head0">支出运费</th>
          <th class="head0">商品成本</th>
       	<th class="head0">平台费用</th>
        	<th class="head0">支付费用</th>
        </tr>
      </thead>
      <tbody>
      
      {{foreach from=$list item=li key=key}}
      <tr>
        <td><a href="/product/productlist?other={{$li.goods_sn}}" target="_blank">{{$li.goods_sn}}</a></td>
         <td class="center">{{$li.ch}}</td>
        <td class="center">
          {{if $li.iscome==2}}
              	<a href="/order/editFBAorder?order_id={{$li.order_id}}" target="_blank">{{$li.order_sn}}</a>
              {{else}}
              	<a href="/orderlist/editorder?order_id={{$li.order_id}}" target="_blank">{{$li.order_sn}}</a>
              {{/if}}
        </td>
        <td>{{$li.dates}} </td>
        <td>{{$li.goods_amount}}</td>
       
       
        <td class="center">{{$li.shipping_fee}}</td>
        <td class="center">{{if $li.shipping_realfee}}{{$li.shipping_realfee}}{{else}}{{$li.shipping_expectfee}}{{/if}}</td>
        <td class="center">{{$li.costprice_total}}</td>
        <td class="center">{{$li.platform_fee}}</td>
        <td class="center">{{$li.pay_fee}}</td>
  
      </tr>
      {{/foreach}}
        </tbody>
      
    </table>
    <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
    <br />
    <br />
  </div>
</div>
<!--bodywrapper-->
<script type="text/javascript">
function ouputcsv()
{

	$("#if_csv").val(1);
	$("#search").submit();
}


</script>

</body>
</html>